package com.cqhfan.api.clients.content;

import com.cqhfan.api.clients.content.fallback.WorksClientFallbackFactory;
import com.cqhfan.pojo.content.po.Works;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 眭传洪
 * @create 2025-08-18 0:50
 */
@FeignClient(value = "content-service", contextId = "works", fallbackFactory = WorksClientFallbackFactory.class)
public interface WorksClient {

    @GetMapping("/works/getByWorksId/{worksId}")
    public Works getByWorksId(@PathVariable("worksId") Long worksId);

}
